package activity.view

import android.widget.CheckBox

class CheckBoxGroup3(val normal: CheckBox, val locked: CheckBox, val timeOut: CheckBox) {
    companion object {
        const val Normal = 0x01
        const val Locked = 0x03
        const val TimeOut = 0x02
    }

    fun setStatus(status: Int) {
        when (status) {
            Normal -> {
                normal.isChecked = true
                locked.isChecked = false
                timeOut.isChecked = false
            }

            Locked -> {
                normal.isChecked = false
                locked.isChecked = true
                timeOut.isChecked = false
            }

            TimeOut -> {
                normal.isChecked = false
                locked.isChecked = false
                timeOut.isChecked = true
            }
        }
    }
}